const defaultState = {
    lines: [],
    visible: false
};
export default function lines(state = defaultState, action) {
    const {type, payload} = action;
    switch (type) {
        case 'GH_ORDER.GET_LINES':
            return {...state, lines: [...payload]};
        case 'GH_ORDER.HIDE_CREATE':
            return {...state, lines: []};
        default:
            return state;
    }
}

